package uc108.com.jetpackdemo.viewmodel;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import uc108.com.jetpackdemo.room.User;

public class UserViewModel extends ViewModel {
    private MutableLiveData<User> mCurrentUser;

    public MutableLiveData<User> getCurrentUser() {
        if (mCurrentUser == null) {
            mCurrentUser = new MutableLiveData<>();
        }
        return mCurrentUser;
    }
}
